package ch.cm.android.teamlearn.webservice;

import android.content.Context;
import android.os.AsyncTask;

public class WebRestSender {

//    private static final String SERVICE_URL = "http://192.168.1.39:9000/WebService/register";
    private static final String SERVICE_URL = "http://xdukez.no-ip.biz:9000/WebService/register";

    private static final String TAG = WebRestSender.class.getName();

    private Context context;

    public WebRestSender(Context context) {
        this.context = context;
    }
    
    public AsyncTask.Status sendRequest(String param) {
        WebServiceTask wst = new WebServiceTask(WebServiceTask.POST_TASK, context, "Posting data...");

        wst.addNameValuePair("param", param);

        wst.execute(new String[] { SERVICE_URL });
        
        return wst.getStatus();
    }

}
